package com.cc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cc.entity.PageResult;
import com.cc.entity.Products;
import com.cc.mapper.ProductsMapper;
import com.cc.service.IProductsService;
import org.springframework.stereotype.Service;

@Service
public class ProductsServiceImpl extends ServiceImpl<ProductsMapper, Products> implements IProductsService {
    
    @Override
    public PageResult<Products> getPage(Page<Products> page) {
        Page<Products> productPage = this.page(page);
        return PageResult.of(productPage);
    }
}